﻿namespace Solution
{
    public static class IoHelper
    {
        #region 公共方法

        public static void CreateDirectoryIfNotExists(string directory)
        {
            lock (string.Intern(directory))
            {
                if (!System.IO.Directory.Exists(directory))
                {
                    System.IO.Directory.CreateDirectory(directory);
                }
            }
        }

        #endregion 公共方法
    }
}